/**
 * URL解析
 * querystring解析
 */
const url = require('url');
const querystring = require('querystring');
const myURL = url.parse('https://user:pass@sub.host.com:8080/p/a/t/h?query=string#hash');
console.log(myURL)
console.log(querystring.parse('foo=bar&abc=xyz&abc=123'))